import axios from 'axios';

export function queryCompanyList(param?: any) {
  return axios.post('/admin/company', param);
}

export function createCompany(param?: any) {
  return axios.post('/admin/company/create', param);
}

export function updateCompany(param?: any) {
  return axios.post('/admin/company/update', param);
}

export function deleteCompany(param: { id?: number }) {
  return axios.post('/admin/company/delete', param);
}

export function querySalesList(param?: any) {
  return axios.post('/admin/sales', param);
}

export function createSales(param?: any) {
  return axios.post('/admin/sales/create', param);
}

export function updateSales(param?: any) {
  return axios.post('/admin/sales/update', param);
}

export function deleteSales(param: { id?: number }) {
  return axios.post('/admin/sales/delete', param);
}


